<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<html:html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><bean:message key="F0304.title"/></title>
	<META http-equiv=Pragma content=no-cache>
	<META http-equiv=Cache-Control content=no-cache>
	<META http-equiv=Expires content=0>
	<link rel="stylesheet" href="../../style/css/style.css" type="text/css">
	<script language="javascript" type="text/javascript"
		src="../../style/scripts/util.js"></script>
	<script language="javascript" type="text/javascript"
		src="../../resource/calendar/DCDA_C03.js"></script>
	<script language="javascript1.2">
	function operation(type,id){
		if(type+""=="export"){
			window.document.forms[0].operationType.value= "export";
		}
		else if(type+""=="queryList"){
		   
		    window.document.forms[0].operationType.value= "queryList";
		}
	
	  	window.document.forms[0].submit();
	}
/*	
	function mOvr(src,clrOver){
		if (!src.contains(event.fromElement)){ 
			src.bgColor = clrOver; 
		}
	}	
	function mOut(src,clrIn){
		if (!src.contains(event.toElement)){
			src.style.cursor = 'hand'; 
			src.bgColor = clrIn; 
		}
	}	
*/	
	function getMessage(){
	var errorMsg = document.forms[0].errorFlag.value;
	if ("" != errorMsg) {
		//**操作成功！*/
		if (errorMsg == 0) {
			alert("<bean:message key="common.alert1"/>");
		}
		//**操作失败！*/
		if (errorMsg == 1) {
			alert("<bean:message key="common.alert2"/>");
		}
		//**查询无结果！*/
		if (errorMsg == 2) {
			alert("<bean:message key="common.alert3"/>");
		}
		//**系统异常，请联系管理员！*/
		if (errorMsg == 3) {
			alert("<bean:message key="common.alert4"/>");
		}
		document.forms[0].errorFlag.value = "";
	}
}
</script>
</head>

<body marginheight="0" marginwidth="0" bottommargin="0" topmargin="0"
	onLoad="javascript:getMessage();">
	<html:form method="post" action="/pages/F03/F0304.do"
		enctype="multipart/form-data">
		<html:hidden property="operationType" />
		<html:hidden property="errorFlag" />
		<!--Begin：表单折叠区块1-->
		<div id="divDlock_2" class="DivBlock">
			<div class="DivHead">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td nowrap class="line_wrap" width="37" height="17">
							<img src="../../resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_2');">
						</td>
						<td nowrap class="line_wrap" width="100%" height="17">
							<span class="SpanTitle"><bean:message key="F0304.title"/></span>
						</td>
					</tr>
				</table>
			</div>
			<div class="DivTail" style="display: block">
				<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
					<TR>
						<TD ALIGN="right" NOWRAP>
							<bean:message key="common.ManufacturingOrder"/>
						</TD>
						<TD ALIGN="left" NOWRAP>
							<html:text property="manufacturingOrder1" styleClass="MyText80" />
							<bean:message key="common.to"/>
							<html:text property="manufacturingOrder2" styleClass="MyText80" />
						</TD>
						<TD ALIGN="right" NOWRAP>
							<bean:message key="F0304.lastAdvanceDate"/>
						</TD>
						<TD ALIGN="left" NOWRAP>
							<html:text property="lastAdvanceDate1"
								styleClass="MyText80" onclick="return CalendarClick(this)" />
							<bean:message key="common.to"/>
							<html:text property="lastAdvanceDate2"
								styleClass="MyText80" onclick="return CalendarClick(this)" />
						</TD>
					</TR>
				</TABLE>
			</div>
		</div>
		<!--End: 查询条件区  -->
		<!--Begin：表单按钮及提示区-->
		<div class="DivButton" style="text-align: right">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td align="left">
						<input type="button" name="Submit1" class="MyButton"
							value="<bean:message key="common.export"/>"
							onClick="javascript:operation('export','');">
					</td>
					<td align="right">
						<input type="button" name="Submit2" class="MyButton"
							value="<bean:message key="common.query"/>"
							onClick="javascript:operation('queryList','');">
						<input type="button" name="Submit3" class="MyButton"
							value="<bean:message key="common.back"/>"
							onClick="window.location='../../frame/blank.html'">
					</td>
				</tr>
			</table>
		</div>
		</div>
		<!--End：表单按钮及提示区-->
		<!--Begin：查询列表-->
		<logic:present name="F0304ActionForm" property="list">
			<div>
				<table id="tbList" width="100%" cellpadding="1" cellspacing="1"
					border="0" rules="none" class="ListBackground">

					<tr align="center" class="ListTitle">
						<td align="center">
							<bean:message key="common.ManufacturingOrder"/>
						</td>
						<td align="center">
							<bean:message key="adyh.model"/>
						</td>
						<td align="center">
							<bean:message key="adyh.groups"/>
						</td>
						<td align="center">
							<bean:message key="F03.groupQty"/>
						</td>
						<td align="center">
							<bean:message key="F0302.lastAdvance"/>
						</td>
						<td align="center">
							<bean:message key="F0302.lastAdvanceDate"/>
						</td>
						<td align="center">
							<bean:message key="F0304.unitSalesPrice"/>
						</td>
						<td align="center">
							<bean:message key="F0304.totalSalesPrice"/>
						</td>
						<td align="center">
							<bean:message key="F0304.unitCostPrice"/>
						</td>
						<td align="center">
							<bean:message key="F0304.TotalCostPrice"/>
						</td>
					</tr>
					<logic:iterate id="rowp" name="F0304ActionForm" property="list">
						<tr class="ListRow1">
							<td align="center">
								<bean:write name="rowp" property="manufacturingOrder" />
								
							</td>
							<td align="center">
								<bean:write name="rowp" property="model" />
							
							</td>
							<td align="center">
								<bean:write name="rowp" property="groups" />
								
							</td>
							<td align="center">
								<bean:write name="rowp" property="groupQty" />
								
							</td>
							<td align="center">
								<bean:write name="rowp" property="lastAdvanceName" />
								
							</td>
							<td align="center">
								<bean:write name="rowp" property="lastAdvanceDate" />
								
							</td>
							<td align="right">
								<bean:write name="rowp" property="unitPrice" />
							
							</td>
							<td align="right">
								<bean:write name="rowp" property="totalPrice" />
							</td>
							<td align="right">
								<bean:write name="rowp" property="unitCostPrice" />
							</td>
							<td align="right">
								<bean:write name="rowp" property="totalCostPrice" />
							</td>
						</tr>
					</logic:iterate>
					<logic:present name="F0304ActionForm" property="totalList">
					<logic:iterate id="rowp1" name="F0304ActionForm"
						property="totalList">
						<tr class="ListRowRed">
							<td align="center">
								<bean:message key="adyh.total"/>
							</td>
							<td align="center">
								&nbsp;
							</td>
							<td align="center">
								&nbsp;
							</td>
							<td align="center">
								<bean:write name="rowp1" property="totalGroupQty" />
							</td>
							<td align="center">
								&nbsp;
							</td>
							<td align="center">
								&nbsp;
							</td>
							<td align="right">
								<bean:write name="rowp1" property="totalUnitPrice" />
							</td>
							<td align="right">
								<bean:write name="rowp1" property="totalTotalPrice" />
							</td>
							<td align="right">
								<bean:write name="rowp1" property="totalUnitCostPrice" />
							</td>
							<td align="right">
								<bean:write name="rowp1" property="totalTotalCostPrice" />
							</td>
						</tr>
					</logic:iterate>
		</logic:present>
				</table>
				<table align="center" width="100%" height="26" border="0"
					cellpadding="0" cellspacing="0">
					<tr>
						<td colspan="6">
							<bean:define id="actionFormName" value="F0304ActionForm" /><%@ include
								file="../../style/pagejsp/pageable.jsp"%></td>
					</tr>
				</table>
			</div>
		</logic:present>
		
		<!--End：查询列表-->
	</html:form>
</body>
<script language="javascript" type="text/javascript">
InitForm();
FocusTableRow("tbList",1);
</script>
</html:html>